package cn.ticket.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.model.MainShowAuthority;
import cn.ticket.service.MainShowAuthorityService;
import cn.ticket.service.StaffService;
@Service
public class MainShowAuthorityServiceImpl implements MainShowAuthorityService {
@Autowired
private StaffService staffService;
	@Override
	public MainShowAuthority getAuthorityByStaffId(Integer staffId) {
		// TODO Auto-generated method stub
		
		return null;
	}
	@Override
	public MainShowAuthority getAuthorityByLevel(Byte level) {
		// TODO Auto-generated method stub
		MainShowAuthority mainShowAuthority=new MainShowAuthority();
	//	mainShowAuthority.setT30(false);
		switch (level) {
		case 1:
	//		mainShowAuthority.setT40(false);
			
			break;
		case 2:
			mainShowAuthority.setT22(true);
			mainShowAuthority.setT23(true);
			mainShowAuthority.setT24(true);
			mainShowAuthority.setT30(true);
			break;
		default:
			break;
		}
		return mainShowAuthority;
	}
	@Override
	public MainShowAuthority getAuthorityByLevelAndStatus(Byte level, String status) {
		// TODO Auto-generated method stub
		return null;
	}

}
